package com.jt.system.dao.impl;

import com.jt.system.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


@Repository
public class UserMapperImpl{
    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;

    public User selectUserByUsername(String username){
        String statement="com.jt.system.dao.UserMapper.selectUserByUsername";
        return sqlSessionTemplate.selectOne(statement, username);
    }
}
